﻿#ifndef QBULLET_H
#define QBULLET_H
#include "qpixitem.h"
#include<QGraphicsScene>
#include "qnet.h"
class QBullet:public QPixItem
{
public:
    QBullet(const QString &fileName,QGraphicsScene *scene,qreal angle);
    void advance(int phase);
    //碰撞之后做的事
    void doColliding();
    virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = Q_NULLPTR);
private:
    QGraphicsScene *scene;
};

#endif // QBULLET_H
